#!/bin/bash -x

set -e

#rm -rf  *.o
for f in `ls *.proto`
do
  protoc --cpp_out=. $f >/dev/null
  if [ $? -eq 0 ] 
  then
    echo -n "."
  else
    echo "$f error"
    exit -1
  fi
done

set +x
echo -e "\nprocess successfully..."

set +e

exit 0
